/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Global;

import Operations.OpHistogram;

/**
 *
 * @author littlechild
 */
public class Global {
    //define some Global declarations
    //code of each File operation
    public static final int fileBegin=1;
    public static final int fileopen=1;
    public static final int fileclose=2;
    public static final int filesave=3;
    public static final int filesaveas=4;
    public static final int fileEnd=5;
    //code of each Edit operation
    public static final int editBegin=5;
    public static final int editBack=5;
    public static final int editFor=6;
    public static final int editEnd=7;
    //code of each DIP operation
    //Histogram
    public static final int opBegin=7;
    public static final int opHistogram=7;
    public static final String histogram_mode[]=OpHistogram.histogram_mode;
    //Binary
    public static final int opBitBegin=8;
    public static final int opEqualization=8;
    public static final int opThreshold=9;
    public static final int opLinearization=10;
    public static final int opContrastStretch=11;
    public static final int opBitEnd=12;
    //Algebra
    public static final int opAlgebraBegin=12;
    public static final int opShiftminus=12;
    public static final int opMinuswith=13;
    public static final int opAddwith=14;
    public static final int opAlgebraEnd=15;
    //Geometry
    public static final int opGeometryBegin=15;
    public static final int opFliplr=15;
    public static final int opFlipud=16;
    public static final int opAffine=17;
    public static final int opPerspective=18;
    public static final int opGeometryEnd=19;
    //Spatial
    public static final int opSpatialBegin=19;
    public static final int opNeighbourAverage=19;
    public static final int opGaussFiltering=20;
    public static final int opRoberts=21;
    public static final int opPrewitt=22;
    public static final int opSobel=23;
    public static final int opISobel=24;
    public static final int opLaplacian=25;
    public static final int opNormSpatialEnd=26;
    public static final int opCanny=26;
    public static final int opSusan=27;
    public static final int opSpatialEnd=28;
    //Mor
    public static final int opMorBegin=28;
    public static final int opErosion=opMorBegin+0;
    public static final int opDilation=opMorBegin+1;
    public static final int opOpening=opMorBegin+2;
    public static final int opClosing=opMorBegin+3;
    public static final int opBoundary=opMorBegin+4;
    public static final int opSkeleton=opMorBegin+5;
    public static final int opThinning=opMorBegin+6;
    public static final int opMorEnd=opMorBegin+7;
    public static final int opEnd=254;
    public static final int opNone=255;
    public static final int thinningSingle=0;
    public static final int thinningContinuous=1;
}

